package org.wdcode.news.helper;

import org.wdcode.base.helper.BaseEntityCacheHelper;
import org.wdcode.news.cache.CategoryCache;
import org.wdcode.news.po.Category;

/**
 * 栏目助手类
 * @author WD
 * @since JDK6
 * @version 1.0 2010-05-12
 */
public final class CategoryHelper extends BaseEntityCacheHelper<CategoryCache, Category> {
	// 栏目助手
	private static CategoryHelper	helper;

	/**
	 * 获得子类的Class
	 * @return 子类的Class
	 */
	public Class<Category> getEntityClass() {
		return Category.class;
	}

	/**
	 * 实例化一个对象
	 */
	public Category newInstance() {
		return new Category();
	}

	/**
	 * 获得栏目助手
	 * @return 栏目助手
	 */
	public static CategoryHelper getHelper() {
		return helper;
	}

	/**
	 * 设置栏目助手
	 * @param helper 栏目助手
	 */
	public void setHelper(CategoryHelper helper) {
		CategoryHelper.helper = helper;
	}
}
